package cn.project.lemontree.dao;

import cn.project.lemontree.bean.Child;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChildDao extends BaseMapper<Child> {
    List<Child> listPage(@Param("page") int page,
                         @Param("size") int size,
                         @Param("childName") String childName,
                         @Param("className") String className);
    int count( @Param("childName") String childName,
              @Param("className") String className);
    int save(Child child);
    int remove(List<Integer> list);
    int update(Child child);
    List<Child> findChildrenByid(Integer classId);
    int setClass(@Param("invitationCode") Integer invitationCode,@Param("childId") Integer childId);
    List<Child> findChild(Integer parentId);
    int countChild(Integer parentId);
    int countClass(Integer childId);
    Child research(String childName,String birth);

}
